import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_svg/svg.dart';

import 'package:get/get.dart';
import 'package:smart_translator/app/style/widget_style.dart';
import 'package:smart_translator/app/widgets/AppHeader.dart';
import 'package:smart_translator/app/widgets/CommonWidgets.dart';

import '../../../style/app_colors.dart';
import '../controllers/no_found_device_controller.dart';

class NoFoundDeviceView extends GetView<NoFoundDeviceController> {
  const NoFoundDeviceView({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: SingleChildScrollView(
          child: Stack(
            children: [
              Container(
                child: SvgPicture.asset(
                  "assets/images/header_part_bg.svg",
                  width: Get.width,
                ),
              ),
              AppHeader.obtainHeaderWithoutTitleAndRightPart(),
              Container(
                width: Get.width,
                margin: EdgeInsets.only(top: 95.h),
                padding: EdgeInsets.all(20.w),
                child: Column(
                  children: [
                      Container(
                        child: Image.asset('assets/images/icon_empty_no_found_device.png',width: 287.w,height: 327.h),
                      ),
                      SizedBox(height: 83.h,),
                      Container(
                        width: Get.width,
                        child: OutlinedButton(onPressed: () {


                        }, child: Text('重新搜索',style: TextStyle(
                            color: AppColors.app_base_theme_color,
                            fontSize: 16.sp
                            ),
                        ),
                        style: OutlinedButton.styleFrom(
                          // 修改边框颜色（未选中状态）
                          side: BorderSide(
                            color: AppColors.app_base_theme_color, // 边框颜色
                          ),
                          // 修改圆角大小
                          shape: RoundedRectangleBorder(
                            borderRadius: BorderRadius.circular(5.0), // 圆角半径
                          ),

                        ),
                        ),
                      ),
                      SizedBox(height: 28.h,),
                      Text('跳过',style: AppStyleThemeData.linkStyle_BIG,),
                      SizedBox(height: 83.h,),
                      Text('访问产品帮助',style: AppStyleThemeData.linkStyle,)

                  ],

                ),
              )
            ],
          ),
        )
    );
  }

}
